﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class m_MRPController : DataObject
    {
        [Column]
        public string Plant { get { return _Plant; } set { _Plant = value; EntityState.FieldChange("Plant"); } }
        private string _Plant;
        public static FieldInfo plant = new FieldInfo("m_MRPController", "Plant");

        [Column]
        public string MRP_Controller { get { return _MRP_Controller; } set { _MRP_Controller = value; EntityState.FieldChange("MRP_Controller"); } }
        private string _MRP_Controller;
        public static FieldInfo mrp_controller = new FieldInfo("m_MRPController", "MRP_Controller");

        [Column]
        public string Name { get { return _Name; } set { _Name = value; EntityState.FieldChange("Name"); } }
        private string _Name;
        public static FieldInfo name = new FieldInfo("m_MRPController", "Name");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("m_MRPController", "Time");

        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("m_MRPController", "Status");
    }
}
